<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%String path = request.getContextPath();%>
<form id="pagerForm" method="post" action="<%=path%>/membercardcostcount/listMemberCardCostCountView.action">
	<input type="hidden" name="pageRequest" value="1" />
	<input type="hidden" name="pageNum" value="${paginator.pageIndex}" />
	<input type="hidden" name="numPerPage" value="${paginator.pageSize}" />
</form>
<div class="pageHeader">
	<div class="searchBar">
		<form onsubmit="return dwzSearch(this, 'dialog');" rel="pagerForm" action="<%=path%>/membercardcostcount/listMemberCardCostCountView.action" method="post">
			<input type="hidden" name="costVO.memberCardId" value="${costVO.memberCardId}"/>
			<ul class="searchContent">
				<li>
					<label style="text-align: right;">商品名称：</label>
					<input type="text" name="costVO.productName" value="${costVO.productName}"/>
				</li>
			</ul>
			<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
			</div>
		</form>
	</div>
</div>
<div class="pageContent">
	<table class="table" width="100%" layoutH="164">
		<thead>
			<tr>
				<th>会员卡</th>
				<th>商品</th>
				<th>次数</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="memberCardCostCountList" id="memberCardCostCount">
				<tr rel="<s:property value="id"/>">
					<td>${memberCard.memberName}</td>
					<td>${product.name}</td>
					<td>${count}</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
				<span>显示</span>
				<select class="combox" name="numPerPage" onchange="dialogPageBreak({numPerPage:this.value})">
					<option value="15" <c:if test="${paginator.pageSize==15}">selected='selected'</c:if> >15</option>
					<option value="30" <c:if test="${paginator.pageSize==30}">selected='selected'</c:if> >30</option>
					<option value="50" <c:if test="${paginator.pageSize==50}">selected='selected'</c:if> >50</option>
					<option value="100" <c:if test="${paginator.pageSize==100}">selected='selected'</c:if> >100</option>
					<option value="200" <c:if test="${paginator.pageSize==200}">selected='selected'</c:if> >200</option>
				</select>
				<span>条，共${paginator.totalCount}条</span>
			</div>
			<div class="pagination" targetType="dialog" totalCount="${paginator.totalCount}" 
				numPerPage="${paginator.pageSize}" pageNumShown="10" currentPage="${paginator.pageIndex}"></div>
	</div>
</div>